package com.aaa.order.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;


//表明这是个fiegn客户端 value =注册的服务名
@FeignClient(value = "user")
public interface OrderFiegnClient {

   //标注，用来发送请求
    @GetMapping("/user/findOrderById/{id}")
    String getProdUctById(@PathVariable("id") Long id);
}
